package com.mzpai.product.enums;

public enum UserActionEnum {
	stroe_login("1","门店登录"),
	xcx_fenxiang("2","小程序分享");
	
	private String code;
	private String title;

	UserActionEnum(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public String getTitle() {
		return title;
	}

	public static String getTitle(String code) {
		for (UserActionEnum obj : UserActionEnum.values()) {
			if (obj.getCode().equals(code)) {
				return obj.title;
			}
		}
		return null;
	}

}
